package ezXpns.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.mock;

import ezXpns.BudgetChange;
import ezXpns.analysis.Transform;
import ezXpns.analysis.transforms.AmountExtractor;


//@author A0086934R
public class AmountExtractorTest {
	
	@Before
	public void setUp() {
		TransformMock = mock(Transform.class);
	}

	@Test
	public void testConstructor() {
		AmountExtractor AE1 = new AmountExtractor();
		
		assertNotNull(AE1);
	}
	
	@Test
	public void test() {
		AmountExtractor AE2 = new AmountExtractor();
		BudgetChange BC2 = new BudgetChange();
		float F2 = 1.0f;
		
		BC2.setAmount(F2);
		
		assertTrue(AE2.apply(BC2).equals(F2));
	}
	
	Transform TransformMock;
}
